package com.io.reader1;
import java.io.*;

public class Test2 {

	public static void main(String[] args) throws Exception {
		FileOutputStream out1= new FileOutputStream("D:\\ѧϰ\\hello.txt");
		BufferedOutputStream out2 = new BufferedOutputStream(out1);
		DataOutputStream out = new DataOutputStream(out2);
		//out.writeByte(1);
		//out.writeLong(1);
		out.writeChars("���");
		//out.writeUTF("hello");
		
		///*

		FileInputStream in1= new FileInputStream("D:\\ѧϰ\\hello.txt");
		BufferedInputStream in2 = new BufferedInputStream(in1);
		DataInputStream in = new DataInputStream(in2);
		System.out.println(in.readUTF());
		//*/
		
		
	}

}
